package com.risk.web.controller.kefu;

import com.risk.common.core.controller.BaseController;
import com.risk.common.core.page.TableDataInfo;
import com.risk.kernel.domain.KfDataOperateTask;
import com.risk.kernel.service.IKfDataOperateTaskService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: Liwen
 * @createTime: 2024/11/25
 * @description:
 */

@Api("客服系统数据操作管理")
@RestController
@RequestMapping("/kf/operate/task")
public class KeFuOperateTaskController extends BaseController {

    @Autowired
    private IKfDataOperateTaskService taskService;

    @PreAuthorize("@ss.hasPermi('kf:operate:task:list')")
    @GetMapping(value = "/list")
    public TableDataInfo list(String pid) {
        startPage();
        List<KfDataOperateTask> list = taskService.selectOperateInfoListByPid(pid);
        return getDataTable(list);
    }

}
